package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "跨服冠军赛")
public class GDChampionRace {
    public static final long WHOLE_SEASON_TIME = 7 * 24 * 3600 * 1000L;

    @NoteField(value = "跨服冠军赛投注上限")
    public static long CHAMPION_RACE_BET_LIMIT;

    public static long MAX_BET_TIMES;
    public static int FIXED_BET_NUM;
    public static int EXCHANGE_SCALE;

    public static String ADMIRE_REWARD_STR;
    public static int ADMIRE_TIMES;
    public static int LADDER_TRANS_POINT_BASE;
    public static int LADDER_TRANS_POINT_SCALE;
    public static String BET_WRONG_REWARD;


    public static void initialize(ParamSheet paramSheet) {
        CHAMPION_RACE_BET_LIMIT = GDParamTool.getLong(paramSheet, 564, 1200);
        LADDER_TRANS_POINT_BASE = GDParamTool.getInt(paramSheet, 568, 800);
        ADMIRE_REWARD_STR = GDParamTool.getString(paramSheet, 566,"0:38:50");
        ADMIRE_TIMES = GDParamTool.getInt(paramSheet, 567, 3);
        LADDER_TRANS_POINT_SCALE = GDParamTool.getInt(paramSheet, 565, 3);
        EXCHANGE_SCALE = GDParamTool.getInt(paramSheet, 516, 10);
        MAX_BET_TIMES = GDParamTool.getInt(paramSheet, 517, 3);
        FIXED_BET_NUM = GDParamTool.getInt(paramSheet, 518, 300);
        BET_WRONG_REWARD = GDParamTool.getString(paramSheet, 520, "0:38:3150");
    }

    public static int getLadderTransPoint(int rank) {
        return LADDER_TRANS_POINT_BASE - rank * LADDER_TRANS_POINT_SCALE;
    }
}
